#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
using namespace std;
#include"queue.h"
int main()
{
	A::priority_queue<int,vector<int>, A::Greater<int>> pq;
	pq.push(1);
	pq.push(5);
	pq.push(3);
	pq.push(4);
	pq.push(2);
	//pq.pop();
	while (!pq.empty())
	{
		cout << pq.top() << " ";
		pq.pop();
	}
	return 0;
}